package com.telecom.pojo.entity;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;

import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author GWX.cz
 * @since 2025-07-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID(主键)
     */
    private Long id;

    /**
     * 用户名(唯一)
     */
    private String username;

    /**
     * 加密密码
     */
    private String password;

    /**
     * 性别(1:男 0:女)
     */
    private Boolean sex;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 头像URL
     */
    private String avatarUrl;

    /**
     * 用户身份(0:USER 1:ADMIN)
     */
    private Integer role;

    /**
     * 余额
     */
    private BigDecimal balance;

    /**
     * 是否启用(1:是 0:否)
     */
    private Boolean isEnabled;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;


}
